package com.litianhao.community.dao;

import com.litianhao.community.entity.Comment;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author litianhao
 * @create 2020-03-16 16:50
 */
@Mapper
public interface CommentMapper {

    List<Comment> selectCommentsByEntity(int entityType,int entityId,int offset,int limit);

    int selectCountByEntity(int entityType,int entityId);

    //添加评论
    int insertComment(Comment comment);
}
